package edu.rit.cs.web;

import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.spring.injection.annot.SpringComponentInjector;

import edu.rit.cs.web.pages.HomePage;

/**
 * Application object for your web application. If you want to run this
 * application without deploying, run the Start class.
 * 
 * @see edu.rit.cs.web.Start#main(String[])
 */
public class WicketApplication extends WebApplication {
  /**
   * Constructor
   */
  public WicketApplication() {
  }

  @Override
  protected void init() {
    super.init();
    getComponentInstantiationListeners().add(new SpringComponentInjector(this));
  }

  /**
   * @see org.apache.wicket.Application#getHomePage()
   */
  public Class<HomePage> getHomePage() {
    return HomePage.class;
  }

}
